
define(['backbone','models/todo'],function(Backbone, TodoModel){

    var TodoCollection = Backbone.Collection.extend({

        model: TodoModel,
        url: 'json/todos.json',
        parse: function(data){
            return data.result;
        }
    });

        return TodoCollection;
});